package com.dongan.pojo;


import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 单元表
 * </p>
 *
 * @author longTao
 * @since 2021-06-15
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("s_cell")
public class Cell implements Serializable {

    private static final long serialVersionUID = 1L;

      @TableId(value = "ID", type = IdType.AUTO)
    private Long id;

    /**
     * 存储ID
     */
    @TableField("STORE_ID")
    private String storeId;

    /**
     * 产品编号
     */
    @TableField("PRODUCT_ID")
    private String productId;

    /**
     * 产品名
     */
    @TableField("PRODUCT_NAME")
    private String productName;

    /**
     * 第一种ID
     */
    @TableField("FIRST_KIND_ID")
    private String firstKindId;

    /**
     * 第一种名称
     */
    @TableField("FIRST_KIND_NAME")
    private String firstKindName;

    /**
     * 第二种ID
     */
    @TableField("SECOND_KIND_ID")
    private String secondKindId;

    /**
     * 第二种名称
     */
    @TableField("SECOND_KIND_NAME")
    private String secondKindName;

    /**
     * 第三种ID
     */
    @TableField("THIRD_KIND_ID")
    private String thirdKindId;

    /**
     * 第三种名称
     */
    @TableField("THIRD_KIND_NAME")
    private String thirdKindName;

    /**
     * 最小数量
     */
    @TableField("MIN_AMOUNT")
    private BigDecimal minAmount;

    /**
     * 最大数量
     */
    @TableField("MAX_AMOUNT")
    private BigDecimal maxAmount;

    /**
     * 最大容量数量
     */
    @TableField("MAX_CAPACITY_AMOUNT")
    private BigDecimal maxCapacityAmount;

    /**
     * 总数
     */
    @TableField("AMOUNT")
    private BigDecimal amount;

    /**
     * 布局
     */
    @TableField("CONFIG")
    private String config;

    /**
     * 登记人
     */
    @TableField("REGISTER")
    private String register;

    /**
     * 登记时间
     */
    @TableField("REGISTER_TIME")
    @DateTimeFormat(pattern = "yyy-MM-dd HH:mm:ss")
    @JsonFormat(locale = "zh",timezone = "GMT+8",pattern = "yyy-MM-dd HH:mm:ss")
    private Date registerTime;

    /**
     * 检验人
     */
    @TableField("CHECKER")
    private String checker;

    /**
     * 检验时间
     */
    @TableField("CHECK_TIME")
    @DateTimeFormat(pattern = "yyy-MM-dd HH:mm:ss")
    @JsonFormat(locale = "zh",timezone = "GMT+8",pattern = "yyy-MM-dd HH:mm:ss")
    private Date checkTime;

    /**
     * 检验标签
     */
    @TableField("CHECK_TAG")
    private String checkTag;

      @TableField(fill = FieldFill.INSERT)
      @DateTimeFormat(pattern = "yyy-MM-dd HH:mm:ss")
      @JsonFormat(locale = "zh",timezone = "GMT+8",pattern = "yyy-MM-dd HH:mm:ss")
    private Date createTime;

      @TableField(fill = FieldFill.INSERT_UPDATE)
      @DateTimeFormat(pattern = "yyy-MM-dd HH:mm:ss")
      @JsonFormat(locale = "zh",timezone = "GMT+8",pattern = "yyy-MM-dd HH:mm:ss")
    private Date updateTime;

    @TableLogic
    private Integer deleted;


}
